package com.jeecms.wicool.dao.shops;

import java.util.List;

import com.jeecms.cms.entity.main.CmsUser;
import com.jeecms.common.hibernate3.Updater;
import com.jeecms.common.page.Pagination;
import com.jeecms.wicool.entity.shops.Coupon;
import com.jeecms.wicool.entity.user.UserCoupon;
/**
 * 优惠劵DAO接口
 */
public interface CouponDao{
	public Pagination getPage(Integer couponType,String couponName,Short status ,int pageNo, int pageSize,CmsUser user);
	public Coupon findById(Integer id);
	public Coupon updateByUpdater(Updater<Coupon> updater);
	public Coupon save(Coupon bean);
	public Coupon deleteById(Integer id);
	public List<Coupon> getAll(CmsUser user);
	
	public List<UserCoupon> findByCouponId(Integer couponId);
}